package com.ithema.d3_util;

import com.ithema.d5_block.Student;

import java.util.Random;

public class LoginDemo {
    public static void main(String[] args) {
        String code ="";
        String data ="abcdefghizklmnopqrstuvwxyzABCDEFGHIZKLMNOPQRSTUVWXYZ0123456789";
        Random random = new Random();
        for (int i = 0; i < 4; i++) {
            int index = random.nextInt(data.length());
            code += data.charAt(index);
        }
        System.out.println(code);
    }
}
